xen.git
19 years ago[ACM] Replace enumerations with macros with qualified names.
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 15:49:49 +0000 (16:49 +0100)]
[ACM] Replace enumerations with macros with qualified names.
Old unqualified enumeration names polluted the global namespace.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN][ACM] Clean up ACM interface to use explicitly-sized types
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 15:26:05 +0000 (16:26 +0100)]
[XEN][ACM] Clean up ACM interface to use explicitly-sized types
and guest handles.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[LINUX] Simplify /proc/iomem initialisation -- no need to fake a
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 15:19:42 +0000 (16:19 +0100)]
[LINUX] Simplify /proc/iomem initialisation -- no need to fake a
domU memory map. The main e820 map already terminates at max_pfn.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX][X86/64] Initialise pages outside initial allocation so that
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 15:18:40 +0000 (16:18 +0100)]
[LINUX][X86/64] Initialise pages outside initial allocation so that
they are picked up by the balloon driver.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] IOPL is ignored for VM86 mode port accesses. Fix Xen
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 13:29:00 +0000 (14:29 +0100)]
[XEN] IOPL is ignored for VM86 mode port accesses. Fix Xen
emulation to match native behaviour.
Signed-off-by: Jan Beulich <jbeulich@novel..com>
19 years ago[LINUX][XENBUS] replace xenbus_transaction_t with an opaque transaction ID.
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 13:25:46 +0000 (14:25 +0100)]
[LINUX][XENBUS] replace xenbus_transaction_t with an opaque transaction ID.
xenbus_transaction_t -> struct xenbus_transaction, which just contains
a single u32.  Also renamed XBT_NULL to XBT_NIL to emphasize that it
isn't a NULL pointer, but a NIL transaction ID.  Compile and boot tested.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
[chrisw: updated for xen-unstable from patchqueue]
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
19 years ago[LINUX][XENBUS] Drop (struct xenbus_device)->data, and simply use ->dev.driver_data
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 13:23:50 +0000 (14:23 +0100)]
[LINUX][XENBUS] Drop (struct xenbus_device)->data, and simply use ->dev.driver_data
instead, since that's what it is there for.  Similar to patch
in patchqueue started by Jeremy, and expanded by me to include all
relevant drivers in xen-unstable.

Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
19 years ago[LINUX][BLKTAP] This code doesn't compile, is marked as DANGEROUS, and
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 13:20:09 +0000 (14:20 +0100)]
[LINUX][BLKTAP] This code doesn't compile, is marked as DANGEROUS, and
is said to be removed when block drivers use grant tables.
So let's remove it.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
19 years ago[LINUX] Use structs not typedefs, remove trailing whitespaces, place symbol
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 13:13:18 +0000 (14:13 +0100)]
[LINUX] Use structs not typedefs, remove trailing whitespaces, place symbol
EXPORTs with functions, order includes, eliminate unsed macros, don't
initialize static data to NULL, etc.  Cleanups from patchqueue.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
19 years ago[NET] front: There's a small leak on a couple error paths in setup_device().
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 13:10:32 +0000 (14:10 +0100)]
[NET] front: There's a small leak on a couple error paths in setup_device().
While there rearrange the ring setup order slightly to simplify error
path since netif_free() will cleanup once ring_ref is valid.  And use
get_zeroed_page() instead of __get_free_page()/memset().  Handle error if
bind_evtchn_to_irqhandler() fails, as bad info->irq value is likely to
cause oops later.  In create_device(), gnttab_free_grant_references()
is accidentally called twice on tx_head during cleanup from failed
gnttab_alloc_grant_references() on rx_head, which could corrupt
gnttab_free_count.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
19 years ago[XEN] Re-increase MAX_ORDER to 20 for the time being. Reducing
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 07:15:58 +0000 (08:15 +0100)]
[XEN] Re-increase MAX_ORDER to 20 for the time being. Reducing
breaks domain0 builder.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Reduce default maximum allocation order from 2^20 pages to 2^11.
kaf24@firebug.cl.cam.ac.uk [Thu, 8 Jun 2006 15:51:39 +0000 (16:51 +0100)]
[XEN] Reduce default maximum allocation order from 2^20 pages to 2^11.
On x86 this corresponds to a maximum aligned contiguous allocation of 8MB.
This can be overridden by architectures if need be.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] swiotlb allocates multiple smaller contiguous DMA regions,
kaf24@firebug.cl.cam.ac.uk [Thu, 8 Jun 2006 15:48:23 +0000 (16:48 +0100)]
[LINUX] swiotlb allocates multiple smaller contiguous DMA regions,
rather than a single big one.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd sched-credit xm tests but don't run them by default yet...
ack@localhost.localdomain [Thu, 8 Jun 2006 10:35:27 +0000 (11:35 +0100)]
Add sched-credit xm tests but don't run them by default yet...
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
19 years ago[LINUX] Set up /proc/iomem in a sensibel way to indicate
kaf24@firebug.cl.cam.ac.uk [Thu, 8 Jun 2006 09:24:48 +0000 (10:24 +0100)]
[LINUX] Set up /proc/iomem in a sensibel way to indicate
code & data resources, and a RAM area on domU.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Only trigger unhandled irq path if irq is not shared across
kaf24@firebug.cl.cam.ac.uk [Thu, 8 Jun 2006 09:11:04 +0000 (10:11 +0100)]
[LINUX] Only trigger unhandled irq path if irq is not shared across
multiple guests (another guest may have handled the interrupt).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Fix domain builder to carefully check that mapped memory area
kaf24@firebug.cl.cam.ac.uk [Thu, 8 Jun 2006 08:52:04 +0000 (09:52 +0100)]
[TOOLS] Fix domain builder to carefully check that mapped memory area
does not overflow and wrap to zero.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix cut-n-paste comment error in public header file.
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 14:51:56 +0000 (15:51 +0100)]
Fix cut-n-paste comment error in public header file.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoExtended PHYSDEVOP_irq_status_query to obtain sharing status
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 14:46:05 +0000 (15:46 +0100)]
Extended PHYSDEVOP_irq_status_query to obtain sharing status
(bound to multiple guests?).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Rename hw_resend_irq to allow it to be defined seperately per arch.
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 13:38:36 +0000 (14:38 +0100)]
[LINUX] Rename hw_resend_irq to allow it to be defined seperately per arch.
Signed-off-by Kevin Tian <kevin.tian@intel.com>

19 years ago[HVM][MMIO] Support decode of 0x83 opcode (or imm8,m32/64').
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 13:21:49 +0000 (14:21 +0100)]
[HVM][MMIO] Support decode of 0x83 opcode (or imm8,m32/64').
This instruction is used by both WinXP during an SMP installation and by
Sun Solaris.  With this patch Sun Solaris UP is able to boot.  Windows
SMP gets a bit further but still has issues.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Travis Betak <tbetak.woller@amd.com>
19 years ago[HVM][MMIO] Emulate more instructions: or/and/xor with byte width,
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 13:20:29 +0000 (14:20 +0100)]
[HVM][MMIO] Emulate more instructions: or/and/xor with byte width,
and load string (LODS) instructions.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Yunfeng zhao <yunfeng.zhao@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[HVM][DM] Cleaner way of clearing VGA memory on mode changes (thanks to
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 13:13:22 +0000 (14:13 +0100)]
[HVM][DM] Cleaner way of clearing VGA memory on mode changes (thanks to
Fabrice Bellard on the QEMU project). This patch clears the
memory in the BIOS call rather than when the Cirrus Logic register changes,
which more closely matches what happens on the real hardware.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
19 years ago[LIBXC] Convert all printf/fprintf uses to use a macro instead.
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 13:07:36 +0000 (14:07 +0100)]
[LIBXC] Convert all printf/fprintf uses to use a macro instead.
Thus all can be disabled at compile time. It would be easy to
make enabling/disabling a run-time option too.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM][PIT] Fix missed_ticks() logic.
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 12:42:21 +0000 (13:42 +0100)]
[HVM][PIT] Fix missed_ticks() logic.
Signed-off-by Xiaowei Yang <xiaowei.yang@intel.com>

19 years ago[LINUX][X86/64] Support IO-port permissions bitmaps (ioperm() syscall).
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 12:38:08 +0000 (13:38 +0100)]
[LINUX][X86/64] Support IO-port permissions bitmaps (ioperm() syscall).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agox86/64 Linux: destroy entire init memory mapping beyond kernel image.
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 10:24:44 +0000 (11:24 +0100)]
x86/64 Linux: destroy entire init memory mapping beyond kernel image.
Avoids overlap with modules mapping area.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoMerged.
emellor@leeni.uk.xensource.com [Wed, 7 Jun 2006 10:03:51 +0000 (11:03 +0100)]
Merged.

19 years agoFix typo.
emellor@leeni.uk.xensource.com [Wed, 7 Jun 2006 10:03:15 +0000 (11:03 +0100)]
Fix typo.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded.
emellor@leeni.uk.xensource.com [Wed, 7 Jun 2006 09:58:09 +0000 (10:58 +0100)]
Added.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMove forward to new version of buildroot -- the old one has gone from the
emellor@leeni.uk.xensource.com [Wed, 7 Jun 2006 09:57:25 +0000 (10:57 +0100)]
Move forward to new version of buildroot -- the old one has gone from the
website.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVMLOADER] Revert to uniprocessor MPS table in rombios.
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 08:59:56 +0000 (09:59 +0100)]
[HVMLOADER] Revert to uniprocessor MPS table in rombios.
Advertising more CPUs than the guest is allocated hangs boot
of Windows XP (selects wrong HAL). The correct fix here is
to dynamically generate the MPS table (at least the CPU
entries) from hvmloader binary.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoUse explicitly-sized types in the dom0_ops and privcmd structures.
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Jun 2006 09:25:59 +0000 (10:25 +0100)]
Use explicitly-sized types in the dom0_ops and privcmd structures.
As discussed previously, the these operations are not performance-sensitive, so
the additional cache footprint shouldn't be an issue.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years agoRepresent PFNs with their own type, rather than 'unsigned long'.
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Jun 2006 08:48:17 +0000 (09:48 +0100)]
Represent PFNs with their own type, rather than 'unsigned long'.
('long' changes size and alignment between 32- and 64-bit ABIs.)
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[NET] front: Turn grant-ref error into a fatal bug. That's the best we
kfraser@dhcp93.uk.xensource.com [Tue, 6 Jun 2006 07:21:31 +0000 (08:21 +0100)]
[NET] front: Turn grant-ref error into a fatal bug. That's the best we
can do until we have a backend driver recovery method.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[X86EMUL] Mark MOV instruction as not needing writeback.
kfraser@dhcp93.uk.xensource.com [Tue, 6 Jun 2006 07:05:13 +0000 (08:05 +0100)]
[X86EMUL] Mark MOV instruction as not needing writeback.
Fix the test harness for x86/64 -- map emulated addresses
to low 4GB of address space.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM][VMX] Interrupts must be kept disabled when entering Xen for
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Jun 2006 16:17:27 +0000 (17:17 +0100)]
[HVM][VMX] Interrupts must be kept disabled when entering Xen for
external interrupt processing. Remove code that immediately
reenabled interrupt delivery on VMEXIT.
Signed-off-by: Seteven Smith <sos22@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] back: Add a few comments to the goriest parts of the scatter-gather patch.
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Jun 2006 16:03:19 +0000 (17:03 +0100)]
[NET] back: Add a few comments to the goriest parts of the scatter-gather patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] front: Transmit SG packets if supported
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Jun 2006 15:33:49 +0000 (16:33 +0100)]
[NET] front: Transmit SG packets if supported

This patch adds scatter-and-gather transmission support to the frontend.
This allows the MTU to be raised right now and the potential for TSO in
future.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 years ago[NET] back: Add SG support
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Jun 2006 15:13:47 +0000 (16:13 +0100)]
[NET] back: Add SG support

This patch adds scatter-and-gather support to the backend.  It also
advertises this fact through xenbus so that the frontend can detect
this and send through SG requests only if it is supported.

SG support is required to support skb's larger than one page.  This
in turn is needed for either jumbo MTU or TSO.  One of these is
required to bring local networking performance up to a level that
is acceptable.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 years ago[VMXASSIST] Extensions to vmxassist to handle additional mode switch cases.
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Jun 2006 14:18:13 +0000 (15:18 +0100)]
[VMXASSIST] Extensions to vmxassist to handle additional mode switch cases.

Extends vmxassist to handle two cases related to mode switching found
while experimenting with different boot loaders.

The first case is use of the JMP instruction with memory location
operands to complete a switch to protected mode. This patch adds
emulation for this form of the JMP instruction to vmxassist.

The second case is where boot loader code does not save/restore a
non-zero SS register across a protected mode traversal.
Zeroing the SS register in vmxassist results in all sorts of problems
in the domU after returning back to real mode. This patch stores
segment register values before entering protected mode and correctly
restores the old values (instead of an incorrect zero value) when
reentering real mode.

Signed-off-by: Kevin Tronkowski <ktronkowski@virtualiron.com>
19 years ago[NET] back: fix synchronisation of access to deallocation buffer ring.
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Jun 2006 14:14:58 +0000 (15:14 +0100)]
[NET] back: fix synchronisation of access to deallocation buffer ring.
Must ensure ring is written to before producer index is incremented.
Bug diagnosed by Ky Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoExtend callback-registration hypercall to take a flags argument.
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Jun 2006 13:35:22 +0000 (14:35 +0100)]
Extend callback-registration hypercall to take a flags argument.
This can currently be used to request that event delivery be
disabled during callback processing.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoCreate new vmassist type 'pae_extended_cr3'. Only advertise
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Jun 2006 09:42:40 +0000 (10:42 +0100)]
Create new vmassist type 'pae_extended_cr3'. Only advertise
pae_pgdir_above_4gb tp guests that have enabled this vmassist.
Control tools ensure all PAE page directories are below 4GB
unless the vmassist is enabled (triggered via an extended-cr3
option in guest Elf header).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Simply shared_info mapping code. Always use a fixmap.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 18:14:44 +0000 (19:14 +0100)]
[LINUX] Simply shared_info mapping code. Always use a fixmap.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX][X86_64] Destroy initial page-table mappings to avoid overlap with modules.
kfraser@dhcp93.uk.xensource.com [Fri, 2 Jun 2006 17:06:50 +0000 (18:06 +0100)]
[LINUX][X86_64] Destroy initial page-table mappings to avoid overlap with modules.

The temporary mappings needed to set up the 1:1 mappings must be torn
down after use; otherwise they may trigger the
WARN_ON() in vmap_pte_range() (namely if the chunk allocated to hold
kernel and initial page tables gets close to or
exceeds 128Mb, or if a sufficiently high mem= argument causes the
static allocations to grow beyond 128Mb, which in
either case means these mappings extend into the modules area).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoFix Xen build with some versions of gcc.
kfraser@dhcp93.uk.xensource.com [Fri, 2 Jun 2006 16:54:55 +0000 (17:54 +0100)]
Fix Xen build with some versions of gcc.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[PAE] Fix tools to properly pack/unpack >4GB PAE CR3 values.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 13:16:43 +0000 (14:16 +0100)]
[PAE] Fix tools to properly pack/unpack >4GB PAE CR3 values.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoA few put_cpu() calls were missed when adding CONFIG_X86_NO_TSS.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 12:36:29 +0000 (13:36 +0100)]
A few put_cpu() calls were missed when adding CONFIG_X86_NO_TSS.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[NET] loopback: Added support for SG
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 11:19:33 +0000 (12:19 +0100)]
[NET] loopback: Added support for SG

Just like the standard loopback device, SG support here is innate.
So all we need to do is mark it as such and zero the change_mtu method
so that the MTU can be changed at will.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 years agoUse halt() instead of asm("hlt").
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 11:14:27 +0000 (12:14 +0100)]
Use halt() instead of asm("hlt").
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoAdd backing support for HDIO_GETGEO ioctl to blkfront.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 11:13:34 +0000 (12:13 +0100)]
Add backing support for HDIO_GETGEO ioctl to blkfront.
Inspired by an earlier patch from Charles Coffing.
Signed-Off-By: Jan Beulich <jbeulich@novell.com>
19 years ago[PAE] Fix support for pgdirs above 4GB. Requires an interface change so that %cr3
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 10:46:24 +0000 (11:46 +0100)]
[PAE] Fix support for pgdirs above 4GB. Requires an interface change so that %cr3
is extended to include high-order address bits at bottom of %cr3 value.
Guests who understand this interface change publish the fact by setting the
option 'PAE=yes[extended-cr3]' in their __xen_guest section.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Fix a problem when destroying a Windows guest.
kfraser@dhcp93.uk.xensource.com [Fri, 2 Jun 2006 08:36:28 +0000 (09:36 +0100)]
[HVM] Fix a problem when destroying a Windows guest.
From: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Tom Woller <thomas.woller@amd.com>
19 years agoMove idle-vcpu allocation logic to a common function.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 08:31:35 +0000 (09:31 +0100)]
Move idle-vcpu allocation logic to a common function.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
19 years ago[IA64][HVM] Enable CGA acceleration for VTI.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 08:20:58 +0000 (09:20 +0100)]
[IA64][HVM] Enable CGA acceleration for VTI.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
19 years agoBuild breakage: revert 10247:2fd7f4fb7d1453e4ff418c06961b0bd9fcb71129.
kfraser@dhcp93.uk.xensource.com [Fri, 2 Jun 2006 08:15:51 +0000 (09:15 +0100)]
Build breakage: revert 10247:2fd7f4fb7d1453e4ff418c06961b0bd9fcb71129.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[IA64] Fix Xen running on IA64. Some function prototypes were
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 06:56:41 +0000 (07:56 +0100)]
[IA64] Fix Xen running on IA64. Some function prototypes were
moved to domain.h and hence undefined in some source files.
This meant that some return types defaulted to int, resulting
in corruption.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
19 years agoFix pagetable accessor macros in Xen to have better names and to
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 21:21:39 +0000 (22:21 +0100)]
Fix pagetable accessor macros in Xen to have better names and to
preserve top bits of PAE pgdirs situated above 4GB.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoUse DEFINE_SPINLOCK consistently throughout Xen.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 20:49:25 +0000 (21:49 +0100)]
Use DEFINE_SPINLOCK consistently throughout Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAllow all trace-buffer hypercalls to be executed even when tracing is currently disabled.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 20:34:47 +0000 (21:34 +0100)]
Allow all trace-buffer hypercalls to be executed even when tracing is currently disabled.
From: George Dunlap
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Fix cpu_possible_map initialisation.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 18:14:42 +0000 (19:14 +0100)]
[LINUX] Fix cpu_possible_map initialisation.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX][X86_64] Fix initial memory mapping code.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 18:07:40 +0000 (19:07 +0100)]
[LINUX][X86_64] Fix initial memory mapping code.

The temporary mappings needed to set up the 1:1 mappings must be torn down after use; otherwise they may trigger the
WARN_ON() in vmap_pte_range() (namely if the chunk allocated to hold kernel and initial page tables gets close to or
exceeds 128Mb, or if a sufficiently high mem= argument causes the static allocations to grow beyond 128Mb, which in
either case means these mappings extend into the modules area).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[HVM] Allow more dynamic use of the qemu serial lines by allowing the Summagraphics...
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 17:32:04 +0000 (18:32 +0100)]
[HVM] Allow more dynamic use of the qemu serial lines by allowing the Summagraphics port to float.

qemu will emulate up to 4 serial lines (COM1 - COM4).  One of these
lines supports a Summagraphics protocol.  This has changed recently,
and it's now always COM2.  This patch allows the user to specify
to qemu which lines should be serial lines, and the code will place
the Summagraphics compatible line at just above the last specified
serial line.  qemu defaults serial line 0 (COM1) to be "vc", resulting
in the Summagraphics support residing on COM2. This is in keeping
with the current behavior.

The results, via qemu command line, are:
<none>                                    COM2
-serial x                                 COM2
-serial x -serial x                       COM3
-serial x -serial x -serial x             COM4
-serial x -serial x -serial x -serial x  <none>

The results are deterministic, and allow the use of up to 4 serial
lines including none with Summagraphics support.  There is no
change from current behavior, unless requested.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years ago[SECURITY] Allow domid and ssidref args to get_decision in
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 17:30:28 +0000 (18:30 +0100)]
[SECURITY] Allow domid and ssidref args to get_decision in
util/security.py to be either strings or ints (previously only strings
would work due to the underlying call to lowlevel.acm).

Signed-off-by: Bryan D. Payne <bdpayne@us.ibm.com>
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
19 years ago[LINUX] Converge ia64 versions of xen/drivers Makefiles with general versions.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 17:29:23 +0000 (18:29 +0100)]
[LINUX] Converge ia64 versions of xen/drivers Makefiles with general versions.

This patch converges the ia64-specific and general versions of
xen/drivers/Makefile and xen/drivers/core/Makefile, using Kconfig
settings instead to control whether specific pieces are built.

Signed-off-by: Aron Griffis <aron@hp.com>
19 years agoDomain creation/destruction cleanups.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 17:10:00 +0000 (18:10 +0100)]
Domain creation/destruction cleanups.

 1. Move alloc/dealloc routines to domain.[ch]
 2. Merge alloc_task/add_vcpu schedops -> init_vcpu
 3. Merge free_task/remove_vcpu schedops -> destroy_domain

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix dummy domains (DOM_IO and DOM_XEN) creation so that
kfraser@dhcp93.uk.xensource.com [Thu, 1 Jun 2006 15:39:42 +0000 (16:39 +0100)]
Fix dummy domains (DOM_IO and DOM_XEN) creation so that
list heads are initialised.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix negation of unsigned quantities in the Xen x86 emulator.
kfraser@dhcp93.uk.xensource.com [Thu, 1 Jun 2006 15:31:37 +0000 (16:31 +0100)]
Fix negation of unsigned quantities in the Xen x86 emulator.
This fixes the problems left behind by c/s 10171. Again pointed
out by Jan Beulich; and again different from his suggested patch.
Hopefully this one will be less embarrassing.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoExpose the exception thrown by xen.lowlevel.xs.
Anthony Liguori [Thu, 1 Jun 2006 11:13:11 +0000 (12:13 +0100)]
Expose the exception thrown by xen.lowlevel.xs.

19 years agoFix a problem where the vcpu count for dom0 doesn't get reset back to the
pl@us.ibm.com [Thu, 1 Jun 2006 11:11:59 +0000 (12:11 +0100)]
Fix a problem where the vcpu count for dom0 doesn't get reset back to the
original value when 01_enforce_dom0_cpus_basic_pos fails.

19 years agoReraise exceptions caught in create.py, so that the error handling in main.py
emellor@leeni.uk.xensource.com [Thu, 1 Jun 2006 10:57:33 +0000 (11:57 +0100)]
Reraise exceptions caught in create.py, so that the error handling in main.py
can handle it neatly.

Signed-off-by: Daniel Miles <daniel.t.miles@hp.com>
19 years agoBlock device write-verify test.
emellor@leeni.uk.xensource.com [Thu, 1 Jun 2006 10:47:00 +0000 (11:47 +0100)]
Block device write-verify test.

This test imports a ram disk device as a physical device into a domU.
The domU initialises the ram disk with data from /dev/urandom and
calculates the md5 checksum of the data (using tee as it is written so as to
avoid reading it back from the device which might potentially mask
problems).
The domU is stopped and the md5 checksum of the data on the device is
calculated by dom0.  The test succeeds if the checksums match, indicating
that all the data written by domU was sucessfully committed to the
device.

This patch also enables tee in BusyBox on the ramdisk and increments the
xm-test version number to 0.8.0.

The patch also installs the block-integrity tests in the default test
set so they get executed.

Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agonetwork-bridge: fix syntax error
kfraser@dhcp93.uk.xensource.com [Thu, 1 Jun 2006 10:25:02 +0000 (11:25 +0100)]
network-bridge: fix syntax error
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agonetwork-bridge: Fall back to eth0/xenbr0 if no default route.
kfraser@dhcp93.uk.xensource.com [Thu, 1 Jun 2006 10:18:26 +0000 (11:18 +0100)]
network-bridge: Fall back to eth0/xenbr0 if no default route.
From: Dave Lively <dave.lively@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix map_pages_to_xen() when deallocating l1 page tables.
kfraser@dhcp93.uk.xensource.com [Thu, 1 Jun 2006 10:04:06 +0000 (11:04 +0100)]
Fix map_pages_to_xen() when deallocating l1 page tables.
Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
19 years ago[HVM] Fix set_guest_back_ptr to ignore empty PTEs.
kfraser@dhcp93.uk.xensource.com [Thu, 1 Jun 2006 09:50:33 +0000 (10:50 +0100)]
[HVM] Fix set_guest_back_ptr to ignore empty PTEs.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix MMU_NORMAL_PT_UPDATE when passed a page that is no longer of type page-table.
kfraser@dhcp93.uk.xensource.com [Thu, 1 Jun 2006 09:34:21 +0000 (10:34 +0100)]
Fix MMU_NORMAL_PT_UPDATE when passed a page that is no longer of type page-table.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[IA64] fix up a few more warnings
awilliam@xenbuild.aw [Wed, 31 May 2006 22:07:47 +0000 (16:07 -0600)]
[IA64] fix up a few more warnings

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[IA64] remove linux-2.6-xen-sparse/arch/ia64/xen/xenconsole.c
awilliam@xenbuild.aw [Wed, 31 May 2006 20:34:33 +0000 (14:34 -0600)]
[IA64] remove linux-2.6-xen-sparse/arch/ia64/xen/xenconsole.c

Inline the content of early_console_setup() to setup.c and remove
xenconsole.c

Signed-off-by: Aron Griffis <aron@hp.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Wed, 31 May 2006 19:05:21 +0000 (13:05 -0600)]
merge with xen-unstable.hg

19 years ago[IA64] Add several missing is_running_on_xen().
awilliam@xenbuild.aw [Wed, 31 May 2006 17:30:07 +0000 (11:30 -0600)]
[IA64] Add several missing is_running_on_xen().

Signed-off-by Kevin Tian <kevin.tian@intel.com>

19 years ago[IA64] remaining warnings removed
awilliam@xenbuild.aw [Wed, 31 May 2006 17:29:50 +0000 (11:29 -0600)]
[IA64] remaining warnings removed

Warnings cleanup.
-Werror added when no_warns=y

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years ago[IA64] Add sal emulation to VTI domain
awilliam@xenbuild.aw [Wed, 31 May 2006 17:28:03 +0000 (11:28 -0600)]
[IA64] Add sal emulation to VTI domain

Signed-off-by Anthony.xu <anthony.xu@intel.com>

19 years ago[IA64] VTI: Initialize VHPT headers invalid
awilliam@xenbuild.aw [Wed, 31 May 2006 17:27:59 +0000 (11:27 -0600)]
[IA64] VTI: Initialize VHPT headers invalid

Signed-off-by: Anthony Xu < anthony.xu@intel.com >
19 years ago[IA64] VTI: set isr before injecting fault to guest
awilliam@xenbuild.aw [Wed, 31 May 2006 17:27:54 +0000 (11:27 -0600)]
[IA64] VTI: set isr before injecting fault to guest

This patch intends to fix isr setting before injecting fault to it.
With this small fix, CPU2000 in VTi can pass now.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
19 years ago[IA64] preparation for vga acceleration of VTI domain
awilliam@xenbuild.aw [Wed, 31 May 2006 17:27:50 +0000 (11:27 -0600)]
[IA64] preparation for vga acceleration of VTI domain

This patch fixes several minor issues, as a prepare step to support VGA
acceleration for VTI domain:

- shared vram buffer needs to be mapped as WB in both sides, because
the shared vram is the true WB memory though VTI domain is told as UC
- Introduced a new pte_mem to indicate p2m entry containing valid mfn
when replace p2m entry. Pte_none doesn't work for VTI case, since IO
type is encoded into p2m entry which however doesn't contain valid mfn.

After above change, guest_physmap_add/remove_page is available to
be used by qemu to setup linear buffer for VTI domain.

Signed-off-by Kevin Tian <kevin.tian@intel.com>

19 years agoExport XEN_ROOT from top-level Makefile. Ensures it is
kfraser@dhcp93.uk.xensource.com [Wed, 31 May 2006 14:48:29 +0000 (15:48 +0100)]
Export XEN_ROOT from top-level Makefile. Ensures it is
always defined when including Config.mk.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[SVM] Remove redundant MAX_INST_SIZE definition.
kfraser@dhcp93.uk.xensource.com [Wed, 31 May 2006 13:23:00 +0000 (14:23 +0100)]
[SVM] Remove redundant MAX_INST_SIZE definition.
Signed off by: Mats Petersson <mats.petersson@amd.com>

19 years agoFix ACM hypercall macros (broke the x86/64 and ia64 builds).
kfraser@dhcp93.uk.xensource.com [Wed, 31 May 2006 12:26:10 +0000 (13:26 +0100)]
Fix ACM hypercall macros (broke the x86/64 and ia64 builds).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoUse a global build configuration file, and rework libxc Makefile for PPC.
kfraser@dhcp93.uk.xensource.com [Wed, 31 May 2006 10:31:52 +0000 (11:31 +0100)]
Use a global build configuration file, and rework libxc Makefile for PPC.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[HVM] Fixes to buffer handling in ne2000 device model.
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 08:30:40 +0000 (09:30 +0100)]
[HVM] Fixes to buffer handling in ne2000 device model.
Signed-off-by: hanzhu <zhu.han@intel.com>
19 years agoThe xm dmesg command wasn't taking the -c/--clear options because of
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:48:54 +0000 (07:48 +0100)]
The xm dmesg command wasn't taking the -c/--clear options because of
incorrect values to arg_check(). Patch simply allows for the possible
option with arg_check().

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
19 years agoUpdate .hgignore list for rombios changes.
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:48:00 +0000 (07:48 +0100)]
Update .hgignore list for rombios changes.

19 years ago[VTPM_TOOLS] Updated vtpm for new release of the tpm_emulator.
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:45:20 +0000 (07:45 +0100)]
[VTPM_TOOLS] Updated vtpm for new release of the tpm_emulator.
New emulator includes AIK, DAA, and Transport Sessions
Signed-off-by: Vinnie Scarlata <Vincent.r.scarlata@intel.com>
19 years ago[MINIOS] Various address-space fixes.
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:43:06 +0000 (07:43 +0100)]
[MINIOS] Various address-space fixes.

1. Make Mini-OS start from 0x0.
2. Fixes the pagetable builder to handle half full, but already mapped
pt frames.=20
3. Add a bounds check to ensure than Mini-OS does not try to use Xen
virtual space.

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil@unisys.com>

19 years ago[HVMLOADER] Default to 8-way SMP rombios.
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:41:33 +0000 (07:41 +0100)]
[HVMLOADER] Default to 8-way SMP rombios.
From: Thomas Woller <thomas.woller@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[SVM] Fix virtualization of the CPUID NX bit, and clean up other CPUID bits.
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:28:43 +0000 (07:28 +0100)]
[SVM] Fix virtualization of the CPUID NX bit, and clean up other CPUID bits.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
19 years ago[HVM] Fix shadow mode to not corrupt frame 0's page_info struct.
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:25:59 +0000 (07:25 +0100)]
[HVM] Fix shadow mode to not corrupt frame 0's page_info struct.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
19 years ago[ACM] Add a hypervisor call macro to the linux kernel; it
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:23:54 +0000 (07:23 +0100)]
[ACM] Add a hypervisor call macro to the linux kernel; it
completes the alignment of the ACM call interface with the other Xen
hypervisor call interfaces. This macro is used to call from the a guest
kernel directly into the ACM hypervisor module.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
Signed-off by: Bryan D. Payne <bdpayne@us.ibm.com>